<?php
namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller {
	public function _initialize() {
	    if (!strstr(ACTION_NAME,'login')&&!strstr(ACTION_NAME,'verify')) {
			if ($_SESSION ['admin'] != NULL && $_SESSION ['admin'] != ''||!empty($_SESSION ['admin'])) {
			}else{
                $oldUrl = CONTROLLER_NAME.'/'.ACTION_NAME;
                //session("oldUrl",$oldUrl);
                $this->redirect ( 'Index/login' );
            }
		}
		$this->assign("v",time());
	}
}